/*package tests.questions;

import kpi.java_training.testing.questions.Question;
import kpi.java_training.testing.questions.StringQuestion;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;

public class StringQuestionTest {
    private Question question;

    @Before
    public void setUp() {
        ArrayList<String> cAnswers = new ArrayList<String>();
        cAnswers.add("one");
        cAnswers.add("two");
        question = new StringQuestion("test question", cAnswers);
    }

    @Test
    public void testIsCorrectEmpty() throws Exception {
        question.setAnswer("");
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testIsCorrectOne() throws Exception {
        question.setAnswer("one");
        Assert.assertTrue(question.isCorrect());
    }

    @Test
    public void testIsCorrectSpaceOne() throws Exception {
        question.setAnswer(" one");
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testIsCorrectTwo() throws Exception {
        question.setAnswer("two");
        Assert.assertTrue(question.isCorrect());
    }

    @Test
    public void testIsCorrectOneTwo() throws Exception {
        question.setAnswer("onetwo");
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testClearAnswer() throws Exception {
        question.setAnswer("one");
        question.clearAnswer();
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testGetQuestionSaveData() throws Exception {
        String s = question.getQuestionSaveData();
        Assert.assertEquals("1\ntest question\n2\none\ntwo", s);
    }
}
         */